<div class="content-preview">
    <div class="content-preview-title">
        <a href="<?php echo url_for('render_content_external',$section).'?id='.$content['id']?>"
           title="<?php echo $content['title']?>">
                <h3><?php echo $content['title'] ?></h3>
        </a>
    </div>
    <?php if($hasBigScreen): ?>
        <?php if($content['thumbBig'] != ''): ?>
            <div class="content-preview-thumbnail">
                <a href="<?php echo url_for('render_content_external',$section).'?id='.$content['id']?>"
                   title="<?php echo $content['title'] ?>">
                        <img alt="<?php echo $content['title'] ?>" src="<?php echo $content['thumbBig'] ?>">
                </a>
            </div>
        <?php else: ?>
            <?php if($content['thumbSmall'] != ''): ?>
                <div class="content-preview-thumbnail">
                    <a href="<?php echo url_for('render_content_external',$section).'?id='.$content['id']?>"
                       title="<?php echo $content['title'] ?>">
                            <img alt="<?php echo $content['title'] ?>" src="<?php echo $content['thumbSmall'] ?>">
                    </a>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    <?php else: ?>
        <?php if($content['thumbSmall'] != ''): ?>
            <div class="content-preview-thumbnail">
                <a href="<?php echo url_for('render_content_external',$section).'?id='.$content['id']?>"
                   title="<?php echo $content['title'] ?>">
                        <img alt="<?php echo $content['title'] ?>" src="<?php echo $content['thumbSmall'] ?>">
                </a>
            </div>
        <?php endif; ?>
    <?php endif;?>
    <?php if($content['summary'] != ''): ?>
        <div class="content-preview-summary">
            <p><?php echo $content['summary'] ?></p>
        </div>
    <?php endif; ?>
</div>